package com.yanmaohu.yulia.statement;

import com.yanmaohu.yulia.bean.SchemaQualifiedName;

/**
 * @author Bright Lee
 */
public final class DropTriggerStatement implements SqlSchemaManipulationStatement {

    private int beginIndex;
    private int endIndex;
    private SchemaQualifiedName triggerName;

    public DropTriggerStatement(int beginIndex,
                                SchemaQualifiedName triggerName) {
        this.beginIndex = beginIndex;
        this.endIndex = triggerName.getEndIndex();
        this.triggerName = triggerName;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public SchemaQualifiedName getTriggerName() {
        return triggerName;
    }

}
